function dlogx=dlog(x)
% dlog: This program takes the log difference of vector x
% Diego R. K�nzig. This version: 17/01/2018

dlogx = diff(log(x));